<%@ Page Language="C#" MasterPageFile="~/master/AdminLayout.master" AutoEventWireup="true" CodeFile="staticcontent.aspx.cs" Inherits="page_private_admin_staticcontent" Title="Untitled Page" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>

<asp:Content ID="workArea" ContentPlaceHolderID="WorkArea" Runat="Server">
<table width="95%" style="margin-left:auto;margin-right:auto;" border="0">
        <tr>
            <td style="height:50px;" valign="middle" align="left">
                <h2>Static Contents</h2>
            </td>
        </tr>
        <tr>
            <td align="center" valign="top">
                <table width="100%">
                    <tr>
                        <td align="left">
                            Content ID:&nbsp;&nbsp;
                            <asp:DropDownList ID="contentIdList" runat="server" AppendDataBoundItems="true" AutoPostBack="true"
                                OnSelectedIndexChanged="contentIdList_Changed" ValidationGroup="contentIdValidate">
                                <asp:ListItem Selected="true" Text="Select" Value="0"></asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;&nbsp;
                            <asp:RequiredFieldValidator ID="contentIdRequired" ControlToValidate="contentIdList"
                                 Display="Dynamic" runat="server" ErrorMessage="Please select a content" InitialValue="0"
                                 ValidationGroup="contentIdValidate">
                            </asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <FCKeditorV2:FCKeditor ID="contentEditor" runat="server" Width="100%" Height="400px" 
                                AutoDetectLanguage="true" DefaultLanguage="aspx" BasePath="~/thirdparty/fckeditor/"
                                FullPage="false" HtmlEncodeOutput="true" UseBROnCarriageReturn="true" ToolbarSet="Custom" >
                            </FCKeditorV2:FCKeditor>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <asp:ImageButton ID="save" runat="server" AlternateText="Save" OnClick="save_Click"
                                SkinID="FormSaveButton" ValidationGroup="contentIdValidate" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

